
import 'package:flutter/material.dart';

class SearchButton extends StatelessWidget {
  void Function() onTap;

  SearchButton({this.onTap});
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Icon(Icons.search),
          SizedBox(width: 10.0,),
          Container(
            height: 35.0,
            width: 250.0,
            decoration: BoxDecoration(
                color: Colors.white30,
                borderRadius: BorderRadius.circular(8.0)
            ),
            child: Text("بۇ يەرنى چىكىپ ئىزدەڭ", style: TextStyle(fontSize: 16.0),),
            alignment: Alignment(0.0, 0.0),
          ),
          SizedBox(width: 10.0,),
          SizedBox(width: 10.0,),
        ],
      ),
      onTap: onTap,
    );
  }
}

